<template>
  <div>
    <div class="bf">
      <a href="">&lt;返回</a>
      <p>不凡</p>
    </div>

    <img
      src="http://yanxuan.nosdn.127.net/8976116db321744084774643a933c5ce.png"
      class="pic"
    />
    <div class="price">
      <p>综合</p>
      <p>价格</p>
      <p>分类</p>
    </div>

    <ul class="content">
      <li v-for="item in data" :key="item.id" class="lim">
        <img :src="item.list_pic_url" alt="" />
        <p>{{ item.name }}</p>

        <span class="ey">¥{{ item.retail_price }}</span>
      </li>
    </ul>
  </div>
</template>

<script>
import { goods } from "@/api/home/index.js";
export default {
  data() {
    return {
      new: "",
      data: []
    };
  },
  computed: {},
  created() {
    var that = this;
    goods({
      isHot: "1"
      //   order: "asc"
    }).then(res => {
      console.log(res);
      that.data = res.data;
    });
  },

  mounted() {},
  methods: {}
};
</script>

<style scoped lang="scss">
.bf p {
  font-size: 14px;
  color: brown;
}
a {
  text-decoration: none;
  color: brown;
  font-size: 14px;
  position: absolute;
  left: 20px;
  top: 20px;
}
.span {
  margin-left: 20px;
}
.pic {
  width: 100%;
  height: 150px;
}
.price {
  height: 40px;
  width: 100%;
  background-color: #fff;
}
.price p {
  float: left;
  margin-left: 50px;
  margin-right: 50px;
}
.content {
  width: 100%;
  height: 1500px;
  background-color: #f5f5f5;
}
.lim {
  width: 177px;
  height: 215px;
  display: flex;
  float: left;
  justify-content: space-between;
  margin-left: 5px;
  background-color: #fff;
  margin-top: 5px;
  flex-direction: column;
}
.lim img {
  width: 150px;
  height: 150px;
  margin-left: 10px;
}
.lim p {
  color: black;
  margin-top: -20px;
  margin-left: -2px;
}
.lim span {
  color: brown;
  margin-left: -2px;
  margin-top: -50px;
}
// .mon {
//   float: left;
// }
// .ey {
//   margin-top: 10px;
//   margin-left: -100px;
// }
</style>